<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const SHCOOL = 'atgg';
        console.log(SHCOOL);
        //const A; //1. 报错，常量必须附初始值
        //SHCOOL = 'hmcxy'; //2. 报错，常量不能重新赋值
        {
            const TEAM = 'uzi';
            console.log(TEAM);
        }
        //console.log(TEAM);//3. 报错，常量和let一样是块作用域

        const arr = ['a', 'b', 'c'];
        console.log(arr);
        arr[0] = 'aaa' //4. 常量数组和对象不能修改引用，但可以修改内部的值
        arr.push('dd')
        console.log(arr);
    </script>
</body>
</html>